package com.example.newheze;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

public class LabActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_lab);
        if (getIntent().getStringExtra("flag")==null)
        {
            setTitle("实验室");
        }
        else
        {
            setTitle("思泉生态农业示范园");
            TextView textView1=findViewById(R.id.lab_introduce);
            textView1.setText(R.string.company_content);
            TextView textView2=findViewById(R.id.total_name);
            textView2.setVisibility(View.VISIBLE);
        }
    }
}
